// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 登录
import login from '@/views/login';
// 首页
import index from '@/views/index';
/**
 * 基础菜单
 */
// 商品管理
import Goods from '@/views/goods/Goods';
// 机器信息管理
import Machine from '@/views/machine/Machine';
// 货道信息管理
import MachineAisle from '@/views/machine/MachineAisle';
/**
 * 订单管理
 */

/**
 * 系统管理
 */
// 用户管理
import user from '@/views/system/user';
// 菜单管理
import Module from '@/views/system/Module';
// 角色管理
import Role from '@/views/system/Role';
// 公司管理
import Dept from '@/views/system/Dept';
// 系统环境变量
import Variable from '@/views/system/Variable';
// 权限管理
import Permission from '@/views/system/Permission';
/**
 * 支付管理
 */
// 支付配置信息
import MachineConfig from '@/views/machine/MachineConfig';
// 支付配置
import Config from '@/views/pay/Config';
/**
 * 数据监控
 */
// 监控查询
import druidLogin from '@/views/druid/login';

// 图表界面
import statistics from '@/views/charts/statistics';

// PDF界面
import pdfToText from '@/views/pdfToText/pdfToText';



//   数据源管理
// 非结构化数据源列表
import UnStructDataMan from "@/views/dataManage/UnStructDataMan";
// 文件分类
import FileTag from "@/views/dataManage/FileTag";
// 结构化数据源列表
import StructDataMan from "@/views/dataManage/StructDataMan";

// 模型执行条件列表
import ConditionList from "@/views/conditionManage/ConditionList";

import indicatorsDetail from  "@/views/indicator/indicatorsDetail"
// pdf 指标提取
import indicatorList from "@/views/indicator/indicatorList";
import indicatorConfig from "@/views/indicator/indicatorConfig";
import indicatorResult from "@/views/indicator/indicatorResult";
// 任务管理
import getResults from "@/views/taskManage/getResults";
import resultDetails from "@/views/taskManage/resultDetails";
import taskList from "@/views/taskManage/taskList";
import handTask from "@/views/taskManage/HandTask";

// 数据清洗任务库
import dataCleanTaskLibrary from "@/views/dataClean/dataCleanTaskLibrary"
import dataCleanTaskDetail from "@/views/dataClean/dataCleanTaskDetail";
import dataCleaStoreConfig from "@/views/dataClean/dataCleaStoreConfig";
import AlgoConfig1 from "@/views/dataClean/algoConfig";
import AlgoConfig from "@/views/dataClean/algo-config"

// 清洗结果列表
import getCleanResults from "@/views/cleanManage/getResults";
import cleanResultDetails from "@/views/cleanManage/resultDetails";
import taskLists from "@/views/cleanManage/taskList";
// 智能问答
import chatRobot from "@/views/chat/chatRobot";


// 启用路由
Vue.use(Router);

// 导出路由
export default new Router({
    routes: [{
        path: '/',
        name: '',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/login',
        name: '登录',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    },
    {
        path: '/index',
        name: '首页',
        component: index,
        iconCls: 'el-icon-tickets',
        children: [
          {
            path: '/goods/Goods',
            name: '商品管理',
            component: Goods,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/machine/Machine',
            name: '机器信息管理',
            component: Machine,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/machine/MachineAisle',
            name: '货道信息管理',
            component: MachineAisle,
            meta: {
                requireAuth: true
            }
        },  {
            path: '/system/user',
            name: '用户管理',
            component: user,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Module',
            name: '菜单管理',
            component: Module,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Role',
            name: '角色管理',
            component: Role,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Dept',
            name: '公司管理',
            component: Dept,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Variable',
            name: '系统环境变量',
            component: Variable,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Permission',
            name: '权限管理',
            component: Permission,
            meta: {
                requireAuth: true
            }
        },  {
            path: '/machine/MachineConfig',
            name: '支付配置信息',
            component: MachineConfig,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/pay/Config',
            name: '支付配置',
            component: Config,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/druid/login',
            name: '监控查询',
            component: druidLogin,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/charts/statistics',
            name: '数据可视化',
            component: statistics,
            meta: {
                requireAuth: true
            }
        },{
          path: '/pdfToText/pdfToText',
          name: 'PDF转化',
          component: pdfToText,
          meta: {
            requireAuth: true
          }
        },
          {
            path: '/dataManage/UnStructDataMan',
            name: '非结构化数据源管理',
            component: UnStructDataMan,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/dataManage/FileTag',
            name: '文件分类',
            component: FileTag,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/dataManage/StructDataMan',
            name: '结构化数据源管理',
            component: StructDataMan,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/conditionManage/ConditionList',
            name: '执行条件利列表',
            component: ConditionList,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/taskManage/getResults',
            name: '查看执行结果',
            component: getResults,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/taskManage/resultDetails',
            name: '执行结果详情',
            component: resultDetails,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/taskManage/taskList',
            name: '任务列表',
            component: taskList,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/taskManage/HandTask',
            name: '手动任务',
            component: handTask,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/dataClean/dataCleanTaskLibrary',
            name: '数据清洗任务库',
            component: dataCleanTaskLibrary,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/dataClean/dataCleanTaskDetail',
            name: '数据清洗任务详情',
            component: dataCleanTaskDetail,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/dataClean/dataCleaStoreConfig',
            name: '数据清洗任务详情',
            component: dataCleaStoreConfig,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/dataClean/algo-config',
            name: '数据清洗任务配置',
            component: AlgoConfig,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/cleanManage/getResults',
            name: '查看执行结果',
            component: getCleanResults,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/cleanManage/resultDetails',
            name: '执行结果详情',
            component: cleanResultDetails,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/cleanManage/taskList',
            name: '清洗结果列表',
            component: taskLists ,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/dataClean/AlgoConfig',
            name: '算法配置列表',
            component: AlgoConfig1 ,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/indicator/indicatorList',
            name: '指标列表管理',
            component: indicatorList,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/indicator/indicatorConfig',
            name: '指标集配置',
            component: indicatorConfig,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/indicator/indicatorsDetail',
            name: '指标集详情',
            component: indicatorsDetail,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/indicator/indicatorResult',
            name: '指标任务结果',
            component: indicatorResult,
            meta: {
              requireAuth: true
            }
          },
          {
            path: '/chat/chatRobot',
            name: '文档问答助手',
            component: chatRobot,
            meta: {
              requireAuth: true
            }
          },
        ]
    }]
})

